<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <h2>Essential Links</h2>

    <h2>Ecosystem</h2>
    <button @click="getClickWhichText">test</button>
  </div>
</template>

<script>
    import {getToken} from "@/axios/api";
    export default {
      name: 'Home',
      data () {
        return {
          msg: 'Welcome to Your Vue.js App'
        }
      },
      created() {

      },
      methods:{
        getClickWhichText() {
          this.msg = '加载中。。';
          getToken().then(res => {
            this.msg = res;
          });
        }
      }
    }
</script>

<style scoped>
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
